<%@ page import="com.goal98.team.Constants" %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="layout" content="main"/>
    <title><g:message code="team.show" default="Show Team"/>--${teamInstance}</title>
  </head>
  <body>
    <div class="nav">
    %{--<span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}"><g:message code="home" default="Home" /></a></span>--}%
      <g:ifAnyGranted role="${Constants.ROLE_ADMIN}">
        <span class="menuButton"><g:link class="list" controller="team" action="list"><g:message code="team.list" default="Team List"/></g:link></span>
        <span class="menuButton"><g:link class="create" controller="team" action="create"><g:message code="team.new" default="New Team"/></g:link></span>
        <span class="menuButton"><g:link class="list" controller="player" action="list"><g:message code="player.list" default="Player List"/></g:link></span>
      </g:ifAnyGranted>
      <span class="menuButton"><g:link class="list" controller="player" action="list"><g:message code="player.list" default="Player List"/></g:link></span>
    </div>
    <div class="body">
      <h1><g:message code="team.show" default="Show Team"/></h1>
      <g:if test="${flash.message}">
        <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}"/></div>
      </g:if>
      <div class="dialog">
        <table>
          <tbody>

            <tr class="prop">
              <td valign="top" class="name"><g:message code="team.name" default="Name"/>:</td>

              <td valign="top" class="value">${fieldValue(bean: teamInstance, field: "name")}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name"><g:message code="team.teamAdmins" default="Team Admins"/>:</td>

              <td valign="top" class="value">${fieldValue(bean: teamInstance, field: "teamAdmins")}</td>

            </tr>

          </tbody>
        </table>
      </div>

      <g:render template="/shared/account" model="[account:teamInstance.account]"/>

    </div>
  </body>
</html>
